package main

import (
	"log"

	"gitee.com/xuender/tagging"
	"github.com/syndtr/goleveldb/leveldb"
)

func main() {
	db, err := leveldb.OpenFile("/tmp/db", nil)
	if err != nil {
		log.Fatalln(err)
	}

	defer db.Close()

	s := tagging.NewService(db)

	log.Println("test", s.Tag("test"))
	log.Println("temp", s.Tag("temp"))
	log.Println("test", s.Tag("test"))
}
